/**
 * 
 */
package ccrClasses.layer2;

import ccrClasses.ICcr;

/**
 * In the text field, Google will indicate the level of severity. 
 * The only terms Google will display, or accept as input, are "Mild" or "Severe."
 * For coded entries, Google supports SNOMEDCT terms that descend from the severities (272141005) concept.
 * Possible values are { 255604002 : "mild" | 371923003 : "mild to moderate" | 6736007 : | "moderate" | 
 * 371924009 : "moderate to severe" | 24484000 : "severe" | 399166001 : "fatal"}. 
 * While the user is only allowed to input "Mild" or "Severe," 
 * Google accepts any of the values when uploaded to Google.
 * These values are mapped to the following consumer terms, 
 * { Mild = mild, mild to moderate; Severe = moderate, moderate to severe, severe, fatal }.
 * When uploading to Google, we will use, in order of preference, SNOMEDCT, text.
 * 
 * @author matheus
 *
 */
public class Severity implements ICcr{
	
	public static String OPEN_TAG = "<Severity>";

	public static String CLOSE_TAG = "</Severity>";
	
	public static String MILD = "Mild";

	public static String SEVERE = "Severe";
	
	/**
	 * In the text field, Google will indicate the level of severity.
	 *  The only terms Google will display, or accept as input, are "Mild" or "Severe."
	 */
	private Text text;

	public Severity(Text text) {
		super();
		this.text = text;
	}

	public Severity() {
		super();
	}

	/**
	 * @return the text
	 */
	public Text getText() {
		return text;
	}

	/**
	 * @param text the text to set
	 */
	public void setText(Text text) {
		this.text = text;
	}

	/**
	 * @return the oPEN_TAG
	 */
	public String getOPEN_TAG() {
		return OPEN_TAG;
	}

	/**
	 * @return the cLOSE_TAG
	 */
	public String getCLOSE_TAG() {
		return CLOSE_TAG;
	}

	/**
	 * @return the mILD
	 */
	public String getMILD() {
		return MILD;
	}

	/**
	 * @return the sEVERE
	 */
	public String getSEVERE() {
		return SEVERE;
	}

	@Override
	public String constructCcrString() {
		return new String(OPEN_TAG + text.constructCcrString() + CLOSE_TAG);
	}
	
	

}
